MERGE

Syntax: MERGE device_filename     
    or: MERGE [device_]filename     (Toolkit II)
Location: QL ROM, Toolkit II

This command is similar to LOAD except that it does not clear the current program and variables out of memory prior to loading the given program file.  Neither is the screen cleared, which enables loading pictures to be shown on screen whilst the main program loads.  This means that any line numbers which appear in the program currently in memory and which are repeated in the program file will be overwritten by the lines in the program file, whereas any new lines will be inserted into the program in memory.

Again, any lines without line numbers are automatically executed as they are loaded into memory.  This could therefore be used within a program to execute a 'command file' stored on a directory device.

Example:
MERGE mdv1_test1_bas

SMS NOTE:
MERGE follows the same rules for finding a program name as the LOAD command.

CROSS-REFERENCE: 
MRUN is very similar. See LOAD and SAVE. DO is also very similar to MERGE.
